package com.wh.wisdomsite.xbox.st.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 仓库模块-入库记录表
 * @version V1.0
 * @author: 杨世强
 * @Package com.wh.wisdomsite.xbox.st.entity
 * @date 2018-12-24 14:08
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2018
 */
@TableName("st_storeInRecord")
public class StoreInRecord extends Model<StoreInRecord> {

    /**
     *PK, 入库记录ID
     */
    @TableId("stirId")
    private String stirId;

    /**
     *FK, 采购申请清单ID
     */
    @TableField("purdId")
    private String purdId;

    /**
     *FK, 库存ID
     */
    @TableField("stId")
    private String stId;

    /**
     *入库单号，系统生成
     */
    @TableField("stiCode")
    private String stiCode;

    /**
     *入库方式
     */
    @TableField("storeWay")
    private String storeWay;

    /**
     *当前库存累计量
     */
    @TableField("kcCumulative")
    private Double kcCumulative;

    /**
     *入库人
     */
    @TableField("pushPerson")
    private String pushPerson;

    /**
     *入库时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField("pushDate")
    private Date pushDate;

    /**
     *入库备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 入库数量
     */
    @TableField("storeNum")
    private Double storeNum;

    /**
     * 同一次入库记录标识
     */
    @TableField("sameRecord")
    private String sameRecord;


    /**
     *创建者
     */
    @TableField("createBy")
    private String createBy;

    /**
     *创建时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @TableField("createDate")
    private Date createDate;

    public String getStirId() {
        return stirId;
    }

    public void setStirId(String stirId) {
        this.stirId = stirId;
    }

    public String getPurdId() {
        return purdId;
    }

    public void setPurdId(String purdId) {
        this.purdId = purdId;
    }

    public String getStId() {
        return stId;
    }

    public void setStId(String stId) {
        this.stId = stId;
    }

    public String getStiCode() {
        return stiCode;
    }

    public void setStiCode(String stiCode) {
        this.stiCode = stiCode;
    }

    public String getStoreWay() {
        return storeWay;
    }

    public void setStoreWay(String storeWay) {
        this.storeWay = storeWay;
    }

    public Double getKcCumulative() {
        return kcCumulative;
    }

    public void setKcCumulative(Double kcCumulative) {
        this.kcCumulative = kcCumulative;
    }

    public String getPushPerson() {
        return pushPerson;
    }

    public void setPushPerson(String pushPerson) {
        this.pushPerson = pushPerson;
    }

    public Date getPushDate() {
        return pushDate;
    }

    public void setPushDate(Date pushDate) {
        this.pushDate = pushDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSameRecord() {
        return sameRecord;
    }

    public void setSameRecord(String sameRecord) {
        this.sameRecord = sameRecord;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Double getStoreNum() {
        return storeNum;
    }

    public void setStoreNum(Double storeNum) {
        this.storeNum = storeNum;
    }

    @Override
    protected Serializable pkVal() {
        return this.stirId;
    }
}
